<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="__PUBLIC__/css/pintuer.css">
<link rel="stylesheet" href="__PUBLIC__/css/admin.css">
<script src="__PUBLIC__/js/jquery.js"></script>
<script src="__PUBLIC__/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加内容</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="__URL__/save" enctype="multipart/form-data">  
     <div class="panel admin-panel">
    <div class="padding border-bottom">
      <ul class="search" style="padding-left:10px;">
        <li> <a class="button border-main icon-plus-square-o" href=""> 添加内容</a> </li>
        <li>搜索：</li>
        <li>
          <select id="s_province" name="s_province" class="input" onchange="changesearch()" style="width:100px; line-height:17px; display:inline-block"> 
          </select>
          &nbsp;&nbsp;
          推荐
          <select id="s_city" name="s_city"  class="input" onchange="changesearch()"  style="width:100px; line-height:17px;display:inline-block">
          </select>
          &nbsp;&nbsp;
          置顶
          <select id="s_county" name="s_county" class="input" onchange="changesearch()"  style="width:100px; line-height:17px;display:inline-block">
          </select>
        </li>
        <script class="resources library" src="__PUBLIC__/area.js" type="text/javascript"></script>

    

    <script type="text/javascript">_init_area();</script>
     <div id="show"></div>
    <script type="text/javascript">

        var Gid  = document.getElementById ;

        var showArea = function(){

          Gid('show').innerHTML = "<h3>省" + Gid('s_province').value + " - 市" +  

          Gid('s_city').value + " - 县/区" + 

          Gid('s_county').value + "</h3>"

                      }

        Gid('s_county').setAttribute('onchange','showArea()');

    </script>
          <li>
            <select name="cid" class="input" style="width:200px; line-height:17px;" onchange="changesearch()">
              <option value="">请选择分类</option>
              <option value="0">我是业主</option>
              <option value="1">装修公司</option>
            </select>
          </li>
        <li>
          <input type="text" placeholder="请输入搜索关键字" name="keywords" class="input" style="width:250px; line-height:17px;display:inline-block" />
          <a href="javascript:void(0)" class="button border-main icon-search" onclick="changesearch()" > 搜索</a></li>
      </ul>
    </div>
     <div class="form-group">
        <div class="label">
          <label>案例名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="demoname" value="{$arr.demoname}"/>
          <div class="tips"></div>
        </div>
      </div>  

      <div class="form-group">
        <div class="label">
          <label>装修风格:</label>
        </div>
        <div class="field">
          <select name="stylename" class="input" style="width:200px; line-height:17px;" onchange="changesearch()">
	          <foreach name="arr" item="v">
	          	<option type="text" class="input w50" value="{$v.stylename}" name="stylename"/>{$v.stylename}</option>
	          </foreach>
          </select>
          <div class="tips"></div>
        </div>
      </div>  
       <div class="form-group">
        <div class="label">
          <label>上传图片：</label>
        </div>
        <div class="field">
          <input type="file" class="input w50" name="imagename" value="{$arr.imagename}"  />
          <div class="tips"></div>
        </div>
      </div> 
       <div class="form-group">
        <div class="label">
          <label>设计理念：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="linian" value="{$arr.linian}"  />
          <div class="tips"></div>
        </div>
      </div>  
       <div class="form-group">
        <div class="label">
          <label>面积：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="area" value="{$arr.area}"  />
          <div class="tips"></div>
        </div>
      </div>  
      <div class="form-group">
        <div class="label">
          <label>分类:</label>
        </div>
        <div class="field">
          <select name="fenlie" class="input" style="width:200px; line-height:17px;" onchange="changesearch()">
          	<option type="text" class="input w50" value="家装" name="fenlie" data-validate="required:请输入标题" />家装</option>
          	<option type="text" class="input w50" value="工装" name="fenlie" data-validate="required:请输入标题" />工装</option>
          </select>
          <div class="tips"></div>
        </div>
      </div>  
      <div class="form-group">
        <div class="label">
          <label>操作员：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="operator" value="{$arr.operator}"  />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>

</body></html>